package com.行为模型.状态模式.照搬;

/**
 * @author chenhs
 * @date 2020/11/12
 */
class HighState extends AbstractState {
	public HighState(AbstractState state) {
		hj = state.hj;
		stateName = "优秀";
		score = state.score;
	}
	public void checkState() {
		if (score < 60) {
			hj.setState(new LowState(this));
		} else if (score < 90) {
			hj.setState(new MiddleState(this));
		}
	}
}